package com.example.demo.dao;

import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface UserMapper {

    //根据User的ID进行查询
    User seleteUserById(String id);

    //全部查询
    List<User> list();

    //添加
    int save(User user);

    //修改
    int update(User user);

    //删除
    int delete(String id);
}
